import request from "@/utils/request";

//个人中心
export const grzx = (user_id) => {
  return request({
    method: "POST",
    data: {
      // user_id
    },
    url: "apply/index/usercenter",
  });
};
// 获取快递信息
export function kuaidi(params) {
  return request({
    url: "/Sf/list",
    // url: "/apply/kuaidi/order_list",
    method: "get",
    params: params,
  });
}
//退出登录
export const out = (pass) => {
  return request({
    method: "POST",
    data: pass,
    url: "/logout",
  });
  // return request({
  //   method: "POST",
  //   data: pass,
  //   url: "/api/index/logout",
  // });
};
// 企业资质
export const zizhi = () => {
  return request({
    method: "POST",
    url: "apply/company/zizhi",
  });
};
// 企业业绩
export const yeji = (params) => {
  return request({
    method: "POST",
    data: params,
    url: "apply/company/yeji",
  });
};
export const gongsirenzheng = (e) => {
  return request({
    method: "POST",
    data: {
      // user_id: sessionStorage.getItem("user_id")
    },
    url: "apply/company/getinfo",
  });
};
//公章使用记录
export const seal = (e) => {
  return request({
    method: "get",
    params: e,
    url: "system/seal/list",
  });
  // return request({
  //   method: "POST",
  //   data: {
  //     // user_id: sessionStorage.getItem('user_id')
  //   },
  //   url: "apply/index/gongsizhang",
  // });
};
//法人章使用记录
export const corporate = (e) => {
  return request({
    method: "get",
    params: e,
    url: "system/seal/list",
  });
  // return request({
  //   method: "POST",
  //   data: {
  //     // user_id: sessionStorage.getItem('user_id')
  //   },
  //   url: "apply/index/farenzhang",
  // });
};
//修改密码
export const modify = (pass) => {
  return request({
    method: "POST",
    data: pass,
    url: "apply/staff/password",
  });
};
//企业认证
export const companyadd = (pass) => {
  return request({
    method: "POST",
    data: pass,
    url: "/system/companyInfo/company_add",
    // url: "/apply/company/company_add",
  });
};
//章认证
export const companyseal = (pass) => {
  return request({
    method: "POST",
    data: pass,
    url: "/system/companyInfo/companyseal",
    // url: "/apply/company/companyseal",
  });
};
// 营业执照识别
// /
export const zhizhao = (pass) => {
  return request({
    method: "post",
    data: pass,
    url: "/agreemant/zhizhao",
    headers: {
      "Content-Type": "multipart/form-data",
    },
    // url: "/apply/company/zhizhao",
  });
};
// 根据社会统一代码查询公司信息
export const companyinfo = (pass) => {
  return request({
    method: "POST",
    data: pass,
    // url: "/apply/company/companyinfo",
    url: "/agreemant/companyinfo",
  });
};
// 根据身份证
export const idcard = (pass) => {
  return request({
    method: "POST",
    data: pass,
    url: "/agreemant/idcard",
    // url: "/apply/company/idcard",
    headers: {
      "Content-Type": "multipart/form-data",
    },
  });
};
// 查询企业认证
export const getinfo = (pass) => {
  return request({
    method: "POST",
    data: pass,
    url: "/apply/company/getinfo",
  });
};
// 我的地址
export const addresslist = (pass) => {
  return request({
    method: "get",
    params: pass,
    url: "/system/userAddress/list",
  });
  // return request({
  //   method: "POST",
  //   data: pass,
  //   url: "/apply/address/addresslist",
  // });
};
